
.product-section {
  padding: 40px 0;
  background: #F3F3F3;
  overflow: hidden;
}

.product-section .container {
  overflow: hidden;
}

/* 热门产品和行业资讯容器 */
.hot-section {
  display: grid;
  grid-template-columns: 760px 1fr;
  gap: 30px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 100%;
  align-items: start;
}

/* 热门产品样式 */
.hot-products {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  height: 320px;
}

/* 行业资讯样式 */
.industry-news {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  height: 320px;
}

/* 新闻列表样式 */
.news-list {
  overflow: hidden;
  position: relative;
}

.news-item {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background-color: #f8f9fa;
}

.news-content {
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-title {
  font-size: 14px;
  margin-right: 4px;
  color: #333;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.news-date {
  font-size: 14px;
  color: #999;
  flex-shrink: 0;
}


/* 产品网格样式 */
.product-grid {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* 热门产品卡片样式 */
.hot-products .product-card {
  flex-shrink: 0;
}

/* 产品大类网格样式（不滚动） */
.category-product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 1.5rem;
  color: #1f2937;
  margin: 0;
}

.view-more-btn {
  background: #0071C1;
  color: white;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}

.view-more-btn:hover {
  background: #1d4ed8;
}

.category-products {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.no-products {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  color: #6b7280;
  font-size: 1.1rem;
}

/* 加载状态 */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.loading-spinner {
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #0071C1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner p {
  color: #6b7280;
  font-size: 1rem;
}

/* 错误状态 */
.error-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  background: #fef2f2;
  border-radius: 12px;
  border: 1px solid #fecaca;
}

.error-message {
  color: #dc2626;
  font-size: 1.1rem;
  text-align: center;
}



@media (max-width: 1024px) {
  .hot-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .category-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .product-grid {
    flex-wrap: wrap;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .product-section {
    padding: 40px 0;
  }

  .hot-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .category-product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .product-grid {
    flex-direction: column;
    gap: 15px;
  }

  .category-products {
    padding: 20px;
  }
  
  .hot-products,
  .industry-news {
    padding: 15px;
  }
  
  .news-title {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .news-date {
    font-size: 11px;
  }
}

/* 热门产品滚动样式 - React Slick */
.product-scroller {
  overflow: hidden;
  width: 100%;
  position: relative;
}
/* 隐藏slick-carousel的默认箭头 */
.slick-slider .slick-arrow {
  display: none !important;
}

/* 隐藏slick-carousel的默认dots */
.slick-slider .slick-dots {
  display: none !important;
}

/* 修复slick-carousel边缘显示问题 */
.product-scroller .slick-slider {
  margin: 0;
  padding: 0;
}

.product-scroller .slick-list {
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.product-scroller .slick-track {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

/* 确保滑块容器完全隐藏超出内容 */
.product-scroller .slick-slider .slick-list {
  margin-left: 0;
  margin-right: 0;
}

/* 进一步覆盖slick-carousel默认样式 */
.product-scroller .slick-slide {
  margin: 0;
}

.product-scroller .slick-slide > div {
  margin: 0;
  padding: 0;
}
